package springboot.test3.demo.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springboot.test3.demo.entity.User;
import springboot.test3.demo.mapper.UserMapper;
import springboot.test3.demo.param.user.LoginParam;
import springboot.test3.demo.service.UserService;

import java.util.List;

/**
 * @版本号 1.0
 * @开发者: dongdq
 * @创建时间: 2021/11/13 11:45
 * @Content:
 */

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> login(LoginParam param) {
        return userMapper.selectUserId(param.getUsername());
    }
}
